﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.SharePoint.Administration;

namespace SPaDevToolkit.Administration
{
    public interface ISPaDatabaseManager<SAT, ST>
        where SAT : SPIisWebServiceApplication   //ISPaWebServiceApplication
        where ST : SPIisWebService
    {
        DBT CreateDatabase<DBT>(SPDatabaseParameters parameters)
            where DBT : class, ISPaWebServiceApplicationDatabase;
        bool IsDatabaseValid(string databaseName, string databaseServer, out string errorMessage);
    }
}
